Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Automatic sequence</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Automatic_sequence"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Automatic_sequence rootpage-Automatic_sequence skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Automatic sequence</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">For the phonograph record property, see <a href="Automatic_sequencing" class="mw-redirect" title="Automatic sequencing">Automatic sequencing</a>.</div>

<p>In <a href="Mathematics" title="Mathematics">mathematics</a> and <a href="Theoretical_computer_science" title="Theoretical computer science">theoretical computer science</a>, an <b>automatic sequence</b> (also called a <b><i>k</i>-automatic sequence</b> or a <b><i>k</i>-recognizable sequence</b> when one wants to indicate that the base of the numerals used is <i>k</i>) is an infinite <a href="Sequence" title="Sequence">sequence</a> of terms characterized by a <a href="Finite_automaton" class="mw-redirect" title="Finite automaton">finite automaton</a>. The <i>n</i>-th term of an automatic sequence <i>a</i>(<i>n</i>) is a mapping of the final state reached in a finite automaton accepting the digits of the number <i>n</i> in some fixed <a href="Radix" title="Radix">base</a>&nbsp;<i>k</i>.<sup id="cite_ref-as1_1-0" class="reference"><a href="#cite_note-as1-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-BLRS78_2-0" class="reference"><a href="#cite_note-BLRS78-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>An <b>automatic set</b> is a set of non-negative integers <i>S</i> for which the sequence of values of its characteristic function χ<sub><i>S</i></sub> is an automatic sequence; that is, <i>S</i> is <i>k</i>-automatic if χ<sub><i>S</i></sub>(<i>n</i>) is <i>k</i>-automatic, where χ<sub><i>S</i></sub>(<i>n</i>) = 1 if <i>n</i>&nbsp;<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \in }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo>∈<!-- ∈ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \in }</annotation>
</semantics>
</math></span><img src="./6fe4d5b0a594c1da89b5e78e7dfbeed90bdcc32f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.55ex; height:1.843ex;" alt="{\displaystyle \in }" loading="lazy"></span>&nbsp;<i>S</i> and 0 otherwise.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-PF13_4-0" class="reference"><a href="#cite_note-PF13-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Definition">Definition</h2></div>
<p>Automatic sequences may be defined in a number of ways, all of which are equivalent. Four common definitions are as follows.
</p>
<div class="mw-heading mw-heading3"><h3 id="Automata-theoretic">Automata-theoretic</h3></div>
<p>Let <i>k</i> be a positive <a href="Integer" title="Integer">integer</a>, and let <i>D</i> = (<i>Q</i>, Σ<sub><i>k</i></sub>, δ, <i>q<sub>0</sub></i>, Δ, τ) be a <a href="Deterministic_finite_automaton" title="Deterministic finite automaton">deterministic finite automaton</a> <i>with output</i>, where
</p>
<ul><li><i>Q</i> is the finite <a href="Set_(mathematics)" title="Set (mathematics)">set</a> of states;</li>
<li>the input alphabet Σ<sub><i>k</i></sub> consists of the set {0,1,...,<i>k</i>-1} of possible digits in <a href="Radix" title="Radix">base</a>-<i>k</i> notation;</li>
<li>δ&nbsp;: <i>Q</i> × Σ<sub><i>k</i></sub> → <i>Q</i> is the transition function;</li>
<li><i>q<sub>0</sub></i> ∈ <i>Q</i> is the initial state;</li>
<li>the output alphabet Δ is a finite set; and</li>
<li>τ&nbsp;: <i>Q</i> → Δ is the output function mapping from the set of internal states to the output alphabet.</li></ul>
<p>Extend the transition function δ from acting on single digits to acting on strings of digits by defining the action of δ on a string <i>s</i> consisting of digits <i>s</i><sub>1</sub><i>s</i><sub>2</sub>...<i>s</i><sub><i>t</i></sub> as:
</p>
<dl><dd>δ(<i>q</i>,<i>s</i>) = δ(δ(<i>q</i>, <i>s</i><sub>1</sub><i>s</i><sub>2</sub>...<i>s</i><sub><i>t</i>-1</sub>), <i>s</i><sub><i>t</i></sub>).</dd></dl>
<p>Define a function <i>a</i> from the set of positive integers to the output alphabet Δ as follows:
</p>
<dl><dd><i>a</i>(<i>n</i>) = τ(δ(<i>q<sub>0</sub></i>,<i>s</i>(<i>n</i>))),</dd></dl>
<p>where <i>s</i>(<i>n</i>) is <i>n</i> written in base <i>k</i>. Then the sequence <i>a</i> = <i>a</i>(1)<i>a</i>(2)<i>a</i>(3)... is a <i>k</i>-automatic sequence.<sup id="cite_ref-as1_1-1" class="reference"><a href="#cite_note-as1-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>An automaton reading the base <i>k</i> digits of <i>s</i>(<i>n</i>) starting with the most significant digit is said to be <i>direct reading</i>, while an automaton starting with the least significant digit is <i>reverse reading</i>.<sup id="cite_ref-PF13_4-1" class="reference"><a href="#cite_note-PF13-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> The above definition holds whether <i>s</i>(<i>n</i>) is direct or reverse reading.<sup id="cite_ref-PF15_5-0" class="reference"><a href="#cite_note-PF15-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Substitution">Substitution</h3></div>
<p>Let <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi }</annotation>
</semantics>
</math></span><img src="./33ee699558d09cf9d653f6351f9fda0b2f4aaa3e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:1.52ex; height:2.176ex;" alt="{\displaystyle \varphi }" loading="lazy"></span> be a <i>k</i>-<a href="Uniform_morphism" class="mw-redirect" title="Uniform morphism">uniform morphism</a> of a <a href="Free_monoid" title="Free monoid">free monoid</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Sigma ^{*}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi mathvariant="normal">Σ<!-- Σ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>∗<!-- ∗ --></mo>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Sigma ^{*}}</annotation>
</semantics>
</math></span><img src="./807344600a40f1de7136f8b54576e12e9428bef4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.732ex; height:2.343ex;" alt="{\displaystyle \Sigma ^{*}}" loading="lazy"></span> and let <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \tau }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>τ<!-- τ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \tau }</annotation>
</semantics>
</math></span><img src="./38a7dcde9730ef0853809fefc18d88771f95206c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.202ex; height:1.676ex;" alt="{\displaystyle \tau }" loading="lazy"></span> be a <i>coding</i> (that is, a <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1}</annotation>
</semantics>
</math></span><img src="./92d98b82a3778f043108d4e20960a9193df57cbf.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.162ex; height:2.176ex;" alt="{\displaystyle 1}" loading="lazy"></span>-uniform morphism), as in the automata-theoretic case. If <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle w}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>w</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle w}</annotation>
</semantics>
</math></span><img src="./88b1e0c8e1be5ebe69d18a8010676fa42d7961e6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.664ex; height:1.676ex;" alt="{\displaystyle w}" loading="lazy"></span> is a <a href="Fixed_point_(mathematics)" title="Fixed point (mathematics)">fixed point</a> of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi }</annotation>
</semantics>
</math></span><img src="./33ee699558d09cf9d653f6351f9fda0b2f4aaa3e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:1.52ex; height:2.176ex;" alt="{\displaystyle \varphi }" loading="lazy"></span>—that is, if <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle w=\varphi (w)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>w</mi>
<mo>=</mo>
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>w</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle w=\varphi (w)}</annotation>
</semantics>
</math></span><img src="./970d10ccb43641dae840b908612d11dfa0c53986.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.756ex; height:2.843ex;" alt="{\displaystyle w=\varphi (w)}" loading="lazy"></span>—then <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s=\tau (w)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
<mo>=</mo>
<mi>τ<!-- τ --></mi>
<mo stretchy="false">(</mo>
<mi>w</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s=\tau (w)}</annotation>
</semantics>
</math></span><img src="./b19fb4adbf40d98fbc7a638d1d42691c0331de12.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:8.864ex; height:2.843ex;" alt="{\displaystyle s=\tau (w)}" loading="lazy"></span> is a <i>k</i>-automatic sequence.<sup id="cite_ref-AS175_6-0" class="reference"><a href="#cite_note-AS175-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> Conversely, every <i>k</i>-automatic sequence is obtainable in this way.<sup id="cite_ref-PF13_4-2" class="reference"><a href="#cite_note-PF13-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> This result is due to <a href="Alan_Cobham_(mathematician)" title="Alan Cobham (mathematician)">Cobham</a>, and it is referred to in the literature as <i>Cobham's little theorem</i>.<sup id="cite_ref-BLRS78_2-1" class="reference"><a href="#cite_note-BLRS78-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-C72_7-0" class="reference"><a href="#cite_note-C72-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="k-kernel"><i>k</i>-kernel</h3></div>
<p>Let <i>k</i>&nbsp;≥&nbsp;2. The <i>k-kernel</i> of the sequence <i>s</i>(<i>n</i>) is the set of subsequences
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle K_{k}(s)=\{s(k^{e}n+r):e\geq 0{\text{ and }}0\leq r\leq k^{e}-1\}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>K</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>s</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo fence="false" stretchy="false">{</mo>
<mi>s</mi>
<mo stretchy="false">(</mo>
<msup>
<mi>k</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>e</mi>
</mrow>
</msup>
<mi>n</mi>
<mo>+</mo>
<mi>r</mi>
<mo stretchy="false">)</mo>
<mo>:</mo>
<mi>e</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;and&nbsp;</mtext>
</mrow>
<mn>0</mn>
<mo>≤<!-- ≤ --></mo>
<mi>r</mi>
<mo>≤<!-- ≤ --></mo>
<msup>
<mi>k</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>e</mi>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo fence="false" stretchy="false">}</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle K_{k}(s)=\{s(k^{e}n+r):e\geq 0{\text{ and }}0\leq r\leq k^{e}-1\}.}</annotation>
</semantics>
</math></span><img src="./89bcc4bdc8c15f7875f88a2bd7a67e9a0a0e8e6b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:49.236ex; height:2.843ex;" alt="{\displaystyle K_{k}(s)=\{s(k^{e}n+r):e\geq 0{\text{ and }}0\leq r\leq k^{e}-1\}.}" loading="lazy"></span></dd></dl>
<p>In most cases, the <i>k</i>-kernel of a sequence is infinite. However, if the <i>k</i>-kernel is finite, then the sequence <i>s</i>(<i>n</i>) is <i>k</i>-automatic, and the converse is also true. This is due to Eilenberg.<sup id="cite_ref-AS185_8-0" class="reference"><a href="#cite_note-AS185-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-ApCOw527_9-0" class="reference"><a href="#cite_note-ApCOw527-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-BR91_10-0" class="reference"><a href="#cite_note-BR91-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p><p>It follows that a <i>k</i>-automatic sequence is necessarily a sequence on a finite alphabet.
</p>
<div class="mw-heading mw-heading3"><h3 id="Formal_power_series">Formal power series</h3></div>
<p>Let <i>u</i>(<i>n</i>) be a sequence over an alphabet Σ and suppose that there is an <a href="Injective_function" title="Injective function">injective function</a> β from Σ to the <a href="Finite_field" title="Finite field">finite field</a> <b>F</b><sub><i>q</i></sub>, where <i>q</i> = <i>p</i><sup><i>n</i></sup> for some prime <i>p</i>. The associated <a href="Formal_power_series" title="Formal power series">formal power series</a> is
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{i\geq 0}\beta (u(i))X^{i}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</munder>
<mi>β<!-- β --></mi>
<mo stretchy="false">(</mo>
<mi>u</mi>
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<msup>
<mi>X</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{i\geq 0}\beta (u(i))X^{i}.}</annotation>
</semantics>
</math></span><img src="./c661de30de647b5a06c12574a87eb8e6169aeb91.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:14.268ex; height:5.676ex;" alt="{\displaystyle \sum _{i\geq 0}\beta (u(i))X^{i}.}" loading="lazy"></span></dd></dl>
<p>Then the sequence <i>u</i> is <i>q</i>-automatic if and only if this formal <a href="Power_series" title="Power series">power series</a> is <a href="Algebraic_function" title="Algebraic function">algebraic</a> over <b>F</b><sub><i>q</i></sub>(<i>X</i>). This result is due to Christol, and it is referred to in the literature as <i>Christol's theorem</i>.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>Automatic sequences were introduced by <a href="Julius_Richard_B%C3%BCchi" title="Julius Richard Büchi">Büchi</a> in 1960,<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> although his paper took a more logico-theoretic approach to the matter and did not use the terminology found in this article. The notion of automatic sequences was further studied by Cobham in 1972, who called these sequences "uniform <a href="Tag_system" title="Tag system">tag sequences</a>".<sup id="cite_ref-C72_7-1" class="reference"><a href="#cite_note-C72-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p><p>The term "automatic sequence" first appeared in a paper of Deshouillers.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<p>The following sequences are automatic:
</p>
<div class="mw-heading mw-heading3"><h3 id="Thue–Morse_sequence">Thue–Morse sequence</h3></div>

<p>The <a href="Thue%E2%80%93Morse_sequence" title="Thue–Morse sequence">Thue–Morse sequence</a> <i>t</i>(<i>n</i>) (<span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A010060" class="extiw external" title="oeis:A010060">A010060</a></span>) is the <a href="Fixed_point_(mathematics)" title="Fixed point (mathematics)">fixed point</a> of the morphism 0 → 01, 1 → 10. Since the <i>n</i>-th term of the Thue–Morse sequence counts the number of ones <a href="Modulo_operation" class="mw-redirect" title="Modulo operation">modulo</a> 2 in the base-2 representation of <i>n</i>, it is generated by the two-state deterministic finite automaton with output pictured here, where being in state <i>q</i><sub>0</sub> indicates there are an even number of ones in the representation of <i>n</i> and being in state <i>q</i><sub>1</sub> indicates there are an odd number of ones.
Hence, the Thue–Morse sequence is 2-automatic.
</p>
<div class="mw-heading mw-heading3"><h3 id="Period-doubling_sequence">Period-doubling sequence</h3></div>
<p>The <i>n</i>-th term of the period-doubling sequence <i>d</i>(<i>n</i>) (<span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A096268" class="extiw external" title="oeis:A096268">A096268</a></span>) is determined by the parity of the exponent of the highest power of 2 dividing <i>n</i>. It is also the fixed point of the morphism 0 → 01, 1 → 00.<sup id="cite_ref-AS176_14-0" class="reference"><a href="#cite_note-AS176-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> Starting with the initial term <i>w</i> = 0 and iterating the 2-uniform morphism φ on <i>w</i> where φ(0) = 01 and φ(1) = 00, it is evident that the period-doubling sequence is the fixed-point of φ(<i>w</i>) and thus it is 2-automatic.
</p>
<div class="mw-heading mw-heading3"><h3 id="Rudin–Shapiro_sequence">Rudin–Shapiro sequence</h3></div>
<p>The <i>n</i>-th term of the <a href="Rudin%E2%80%93Shapiro_sequence" title="Rudin–Shapiro sequence">Rudin–Shapiro sequence</a> <i>r</i>(<i>n</i>) (<span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A020985" class="extiw external" title="oeis:A020985">A020985</a></span>) is determined by the number of consecutive ones in the base-2 representation of <i>n</i>. The 2-kernel of the Rudin–Shapiro sequence<sup id="cite_ref-AS154_15-0" class="reference"><a href="#cite_note-AS154-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> is
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{aligned}r(2n)&amp;=r(n),\\r(4n+1)&amp;=r(n),\\r(8n+7)&amp;=r(2n+1),\\r(16n+3)&amp;=r(8n+3),\\r(16n+11)&amp;=r(4n+3).\end{aligned}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true">
<mtr>
<mtd>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>4</mn>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>8</mn>
<mi>n</mi>
<mo>+</mo>
<mn>7</mn>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>16</mn>
<mi>n</mi>
<mo>+</mo>
<mn>3</mn>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>8</mn>
<mi>n</mi>
<mo>+</mo>
<mn>3</mn>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>16</mn>
<mi>n</mi>
<mo>+</mo>
<mn>11</mn>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>r</mi>
<mo stretchy="false">(</mo>
<mn>4</mn>
<mi>n</mi>
<mo>+</mo>
<mn>3</mn>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\begin{aligned}r(2n)&amp;=r(n),\\r(4n+1)&amp;=r(n),\\r(8n+7)&amp;=r(2n+1),\\r(16n+3)&amp;=r(8n+3),\\r(16n+11)&amp;=r(4n+3).\end{aligned}}}</annotation>
</semantics>
</math></span><img src="./713b7898742149e5d192925c5781eb99156a3881.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -7.171ex; width:25.658ex; height:15.509ex;" alt="{\displaystyle {\begin{aligned}r(2n)&amp;=r(n),\\r(4n+1)&amp;=r(n),\\r(8n+7)&amp;=r(2n+1),\\r(16n+3)&amp;=r(8n+3),\\r(16n+11)&amp;=r(4n+3).\end{aligned}}}" loading="lazy"></span></dd></dl>
<p>Since the 2-kernel consists only of <i>r</i>(<i>n</i>), <i>r</i>(2<i>n</i>&nbsp;+&nbsp;1), <i>r</i>(4<i>n</i>&nbsp;+&nbsp;3), and <i>r</i>(8<i>n</i>&nbsp;+&nbsp;3), it is finite and thus the Rudin–Shapiro sequence is 2-automatic.
</p>
<div class="mw-heading mw-heading3"><h3 id="Other_sequences">Other sequences</h3></div>
<p>Both the <a href="Baum%E2%80%93Sweet_sequence" title="Baum–Sweet sequence">Baum–Sweet sequence</a><sup id="cite_ref-AS156_16-0" class="reference"><a href="#cite_note-AS156-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> (<span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A086747" class="extiw external" title="oeis:A086747">A086747</a></span>) and the <a href="Regular_paperfolding_sequence" title="Regular paperfolding sequence">regular paperfolding sequence</a><sup id="cite_ref-BR92_17-0" class="reference"><a href="#cite_note-BR92-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-AS155_18-0" class="reference"><a href="#cite_note-AS155-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-LotIII526_19-0" class="reference"><a href="#cite_note-LotIII526-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> (<span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A014577" class="extiw external" title="oeis:A014577">A014577</a></span>) are automatic. In addition, the general paperfolding sequence with a periodic sequence of folds is also automatic.<sup id="cite_ref-AS183_20-0" class="reference"><a href="#cite_note-AS183-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Properties">Properties</h2></div>
<p>Automatic sequences exhibit a number of interesting properties. A non-exhaustive list of these properties is presented below.
</p>
<ul><li>Every automatic sequence is a <a href="Morphic_word" title="Morphic word">morphic word</a>.<sup id="cite_ref-LotIII524_21-0" class="reference"><a href="#cite_note-LotIII524-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup></li>
<li>For <i>k</i>&nbsp;≥&nbsp;2 and <i>r</i>&nbsp;≥&nbsp;1, a sequence is <i>k</i>-automatic if and only if it is <i>k</i><sup><i>r</i></sup>-automatic. This result is due to Eilenberg.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup></li>
<li>For <i>h</i> and <i>k</i> <a href="Multiplicative_independence" title="Multiplicative independence">multiplicatively independent</a>, a sequence is both <i>h</i>-automatic and <i>k</i>-automatic if and only if it is ultimately periodic.<sup id="cite_ref-as345_23-0" class="reference"><a href="#cite_note-as345-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup> This result is due to Cobham also known as <a href="Cobham's_theorem" title="Cobham's theorem">Cobham's theorem</a>,<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> with a multidimensional generalisation due to Semenov.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup></li>
<li>If <i>u</i>(<i>n</i>) is a <i>k</i>-automatic sequence over an alphabet Σ and <i>f</i> is a <a href="Uniform_morphism" class="mw-redirect" title="Uniform morphism">uniform morphism</a> from Σ<sup>∗</sup> to another alphabet Δ<sup>∗</sup>, then <i>f</i>(<i>u</i>) is a <i>k</i>-automatic sequence over Δ.<sup id="cite_ref-ApCoW532_27-0" class="reference"><a href="#cite_note-ApCoW532-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup></li>
<li>If <i>u</i>(<i>n</i>) is a <i>k</i>-automatic sequence, then the sequences <i>u</i>(<i>k</i><sup><i>n</i></sup>) and <i>u</i>(<i>k</i><sup><i>n</i></sup>&nbsp;−&nbsp;1) are ultimately periodic.<sup id="cite_ref-ApCoW529_28-0" class="reference"><a href="#cite_note-ApCoW529-28"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> Conversely, if <i>u</i>(<i>n</i>) is an ultimately periodic sequence, then the sequence <i>v</i> defined by <i>v</i>(<i>k</i><sup><i>n</i></sup>) = <i>u</i>(<i>n</i>) and otherwise zero is <i>k</i>-automatic.<sup id="cite_ref-BR103_29-0" class="reference"><a href="#cite_note-BR103-29"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Proving_and_disproving_automaticity">Proving and disproving automaticity</h2></div>
<p>Given a candidate sequence <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s=(s_{n})_{n\geq 0}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
<mo>=</mo>
<mo stretchy="false">(</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s=(s_{n})_{n\geq 0}}</annotation>
</semantics>
</math></span><img src="./ffa80fd89b077780d3150c6ae7461ebc0f42e1a2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.626ex; height:2.843ex;" alt="{\displaystyle s=(s_{n})_{n\geq 0}}" loading="lazy"></span>, it is usually easier to disprove its automaticity than to prove it. By the <i>k</i>-kernel characterization of <i>k</i>-automatic sequences, it suffices to produce infinitely many distinct elements in the <i>k</i>-kernel <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle K_{k}(s)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>K</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>s</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle K_{k}(s)}</annotation>
</semantics>
</math></span><img src="./e0f1695743ee020f6f80f4f66452543fed7c1474.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:5.962ex; height:2.843ex;" alt="{\displaystyle K_{k}(s)}" loading="lazy"></span> to show that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s}</annotation>
</semantics>
</math></span><img src="./01d131dfd7673938b947072a13a9744fe997e632.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.09ex; height:1.676ex;" alt="{\displaystyle s}" loading="lazy"></span> is not <i>k</i>-automatic. Heuristically, one might try to prove automaticity by checking the agreement of terms in the <i>k</i>-kernel, but this can occasionally lead to wrong guesses. For example, let
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle t=011010011\dots }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>t</mi>
<mo>=</mo>
<mn>011010011</mn>
<mo>…<!-- … --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle t=011010011\dots }</annotation>
</semantics>
</math></span><img src="./2f1c575df175fbb793cee02b687c58dfc4e4149d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:17.511ex; height:2.176ex;" alt="{\displaystyle t=011010011\dots }" loading="lazy"></span></dd></dl>
<p>be the Thue–Morse word. Let <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s}</annotation>
</semantics>
</math></span><img src="./01d131dfd7673938b947072a13a9744fe997e632.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.09ex; height:1.676ex;" alt="{\displaystyle s}" loading="lazy"></span> be the word given by concatenating successive terms in the sequence of run-lengths of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle t}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>t</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle t}</annotation>
</semantics>
</math></span><img src="./65658b7b223af9e1acc877d848888ecdb4466560.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:0.84ex; height:2.009ex;" alt="{\displaystyle t}" loading="lazy"></span>. Then <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s}</annotation>
</semantics>
</math></span><img src="./01d131dfd7673938b947072a13a9744fe997e632.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.09ex; height:1.676ex;" alt="{\displaystyle s}" loading="lazy"></span> begins
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s=12112221\dots .}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
<mo>=</mo>
<mn>12112221</mn>
<mo>…<!-- … --></mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s=12112221\dots .}</annotation>
</semantics>
</math></span><img src="./72960b3826e04a6b0cae797d68a6305d69bf6fff.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:17.633ex; height:2.176ex;" alt="{\displaystyle s=12112221\dots .}" loading="lazy"></span>.</dd></dl>
<p>It is known that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s}</annotation>
</semantics>
</math></span><img src="./01d131dfd7673938b947072a13a9744fe997e632.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.09ex; height:1.676ex;" alt="{\displaystyle s}" loading="lazy"></span> is the fixed point <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle h^{\omega }(1)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ω<!-- ω --></mi>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle h^{\omega }(1)}</annotation>
</semantics>
</math></span><img src="./506a2cbfb6b3f0c582f28260fda0125c23ccad2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:5.565ex; height:2.843ex;" alt="{\displaystyle h^{\omega }(1)}" loading="lazy"></span> of the morphism
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle h(1)=121,h(2)=12221.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>h</mi>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>121</mn>
<mo>,</mo>
<mi>h</mi>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>12221.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle h(1)=121,h(2)=12221.}</annotation>
</semantics>
</math></span><img src="./b55e4d7cb638abd438cecac87c5026f8b58e7c9c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:25.799ex; height:2.843ex;" alt="{\displaystyle h(1)=121,h(2)=12221.}" loading="lazy"></span></dd></dl>
<p>The word <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s}</annotation>
</semantics>
</math></span><img src="./01d131dfd7673938b947072a13a9744fe997e632.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.09ex; height:1.676ex;" alt="{\displaystyle s}" loading="lazy"></span> is not 2-automatic, but certain elements of its 2-kernel agree for many terms. For example,
<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s_{16n+1}=s_{64n+1}{\text{ for }}0\leq n\leq 1864134}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>16</mn>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
<mo>=</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>64</mn>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mn>0</mn>
<mo>≤<!-- ≤ --></mo>
<mi>n</mi>
<mo>≤<!-- ≤ --></mo>
<mn>1864134</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s_{16n+1}=s_{64n+1}{\text{ for }}0\leq n\leq 1864134}</annotation>
</semantics>
</math></span><img src="./b4a06b6c5fab44d77982537b934d6200a523f505.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:36.044ex; height:2.509ex;" alt="{\displaystyle s_{16n+1}=s_{64n+1}{\text{ for }}0\leq n\leq 1864134}" loading="lazy"></span>
</p><p>but not for <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n=1864135}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>=</mo>
<mn>1864135</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n=1864135}</annotation>
</semantics>
</math></span><img src="./e8d02ee85dc3e235c32902529ce24785e900ee54.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:12.63ex; height:2.176ex;" alt="{\displaystyle n=1864135}" loading="lazy"></span>.<sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup>
</p><p>Given a sequence that is conjectured to be automatic, there are a few useful approaches to proving it actually is. One approach is to directly construct a <a href="Deterministic_automaton" title="Deterministic automaton">deterministic automaton</a> with output that gives the sequence. Let <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (s_{n})_{n\geq 0}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (s_{n})_{n\geq 0}}</annotation>
</semantics>
</math></span><img src="./94c4ace08527ce222b7f7e00ae0745bb45058b7a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:7.437ex; height:2.843ex;" alt="{\displaystyle (s_{n})_{n\geq 0}}" loading="lazy"></span> written in the alphabet <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Delta }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">Δ<!-- Δ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Delta }</annotation>
</semantics>
</math></span><img src="./32769037c408874e1890f77554c65f39c523ebe2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.936ex; height:2.176ex;" alt="{\displaystyle \Delta }" loading="lazy"></span>, and let <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (n)_{k}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>n</mi>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (n)_{k}}</annotation>
</semantics>
</math></span><img src="./5ced014b1e3d7d29a18792c6ceae44934df25e50.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.293ex; height:2.843ex;" alt="{\displaystyle (n)_{k}}" loading="lazy"></span> denote the base-<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span> expansion of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n}</annotation>
</semantics>
</math></span><img src="./a601995d55609f2d9f5e233e36fbe9ea26011b3b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}" loading="lazy"></span>. Then the sequence <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s=(s_{n})_{n\geq 0}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
<mo>=</mo>
<mo stretchy="false">(</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s=(s_{n})_{n\geq 0}}</annotation>
</semantics>
</math></span><img src="./ffa80fd89b077780d3150c6ae7461ebc0f42e1a2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.626ex; height:2.843ex;" alt="{\displaystyle s=(s_{n})_{n\geq 0}}" loading="lazy"></span> is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span>-automatic if and only each of the fibres
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle I_{k}(s,d):=\{(n)_{k}\mid s_{n}=d\}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>I</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>s</mi>
<mo>,</mo>
<mi>d</mi>
<mo stretchy="false">)</mo>
<mo>:=</mo>
<mo fence="false" stretchy="false">{</mo>
<mo stretchy="false">(</mo>
<mi>n</mi>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo>∣<!-- ∣ --></mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>=</mo>
<mi>d</mi>
<mo fence="false" stretchy="false">}</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle I_{k}(s,d):=\{(n)_{k}\mid s_{n}=d\}}</annotation>
</semantics>
</math></span><img src="./396d5903281b1769109598a04924365606f6b6b8.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:26.185ex; height:2.843ex;" alt="{\displaystyle I_{k}(s,d):=\{(n)_{k}\mid s_{n}=d\}}" loading="lazy"></span></dd></dl>
<p>is a regular language.<sup id="cite_ref-31" class="reference"><a href="#cite_note-31"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> Checking regularity of the fibres can often be done using the <a href="Pumping_lemma_for_regular_languages" title="Pumping lemma for regular languages">pumping lemma for regular languages</a>.
</p><p>If <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s_{k}(n)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s_{k}(n)}</annotation>
</semantics>
</math></span><img src="./6d798465c21910c785357737ca826b4b1b2a9b6d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:5.383ex; height:2.843ex;" alt="{\displaystyle s_{k}(n)}" loading="lazy"></span> denotes the sum of the digits in the base-<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span> expansion of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n}</annotation>
</semantics>
</math></span><img src="./a601995d55609f2d9f5e233e36fbe9ea26011b3b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle p(X)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>p</mi>
<mo stretchy="false">(</mo>
<mi>X</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle p(X)}</annotation>
</semantics>
</math></span><img src="./f7425278aab7b6ceb8ddb54fa5ce71d2cf52d28f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; margin-left: -0.089ex; width:5.048ex; height:2.843ex;" alt="{\displaystyle p(X)}" loading="lazy"></span> is a polynomial with non-negative integer coefficients, and if <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k\geq 2}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
<mo>≥<!-- ≥ --></mo>
<mn>2</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k\geq 2}</annotation>
</semantics>
</math></span><img src="./c797a67c0a51167d373c013a9a020f4568a11754.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:5.472ex; height:2.343ex;" alt="{\displaystyle k\geq 2}" loading="lazy"></span>, <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m\geq 1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
<mo>≥<!-- ≥ --></mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m\geq 1}</annotation>
</semantics>
</math></span><img src="./1e0f3243e9d7f06bee548558bf20aaa9b5263d3f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:6.301ex; height:2.343ex;" alt="{\displaystyle m\geq 1}" loading="lazy"></span> are integers, then the sequence
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (s_{k}(p(n)){\pmod {m}})_{n\geq 0}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>m</mi>
<mo stretchy="false">)</mo>
</mrow>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (s_{k}(p(n)){\pmod {m}})_{n\geq 0}}</annotation>
</semantics>
</math></span><img src="./3899b246a5d8043e92d761153698bd9a00056764.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:25.215ex; height:2.843ex;" alt="{\displaystyle (s_{k}(p(n)){\pmod {m}})_{n\geq 0}}" loading="lazy"></span></dd></dl>
<p>is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span>-automatic if and only if <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \deg p\leq 1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>deg</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>p</mi>
<mo>≤<!-- ≤ --></mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \deg p\leq 1}</annotation>
</semantics>
</math></span><img src="./a3754f624eccba599cbb4af382bfcd4f1ad6bc39.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:9.305ex; height:2.509ex;" alt="{\displaystyle \deg p\leq 1}" loading="lazy"></span> or <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m\mid k-1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
<mo>∣<!-- ∣ --></mo>
<mi>k</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m\mid k-1}</annotation>
</semantics>
</math></span><img src="./2b0f48f642e0d5f923dc96eb9c5776ff34c492f1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.192ex; height:2.843ex;" alt="{\displaystyle m\mid k-1}" loading="lazy"></span>.<sup id="cite_ref-32" class="reference"><a href="#cite_note-32"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="1-automatic_sequences">1-automatic sequences</h2></div>
<p><i>k</i>-automatic sequences are normally only defined for <i>k</i>&nbsp;≥&nbsp;2.<sup id="cite_ref-as1_1-2" class="reference"><a href="#cite_note-as1-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> The concept can be extended to <i>k</i> = 1 by defining a 1-automatic sequence to be a sequence whose <i>n</i>-th term depends on the <a href="Unary_numeral_system" title="Unary numeral system">unary notation</a> for <i>n</i>; that is, (1)<sup><i>n</i></sup>. Since a finite state automaton must eventually return to a previously visited state, all 1-automatic sequences are ultimately periodic.
</p>
<div class="mw-heading mw-heading2"><h2 id="Generalizations">Generalizations</h2></div>
<p>Automatic sequences are robust against variations to either the definition or the input sequence. For instance, as noted in the automata-theoretic definition, a given sequence remains automatic under both direct and reverse reading of the input sequence. A sequence also remains automatic when an alternate set of digits is used or when the base is negated; that is, when the input sequence is represented in base −<i>k</i> instead of in base <i>k</i>.<sup id="cite_ref-AS157_33-0" class="reference"><a href="#cite_note-AS157-33"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup> However, in contrast to using an alternate set of digits, a change of base may affect the automaticity of a sequence.
</p><p>The domain of an automatic sequence can be extended from the natural numbers to the integers via <i>two-sided</i> automatic sequences. This stems from the fact that, given <i>k</i>&nbsp;≥&nbsp;2, every integer can be represented uniquely in the form <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{0\leq i\leq r}a_{i}(-k)^{i},}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
<mo>≤<!-- ≤ --></mo>
<mi>i</mi>
<mo>≤<!-- ≤ --></mo>
<mi>r</mi>
</mrow>
</munder>
<msub>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mo>−<!-- − --></mo>
<mi>k</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msup>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{0\leq i\leq r}a_{i}(-k)^{i},}</annotation>
</semantics>
</math></span><img src="./231704ec58ba4724825eac3dc4c5aabbd8313f87.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:13.38ex; height:5.676ex;" alt="{\displaystyle \sum _{0\leq i\leq r}a_{i}(-k)^{i},}" loading="lazy"></span> where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a_{i}\in \{0,\dots ,k-1\}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<mo>∈<!-- ∈ --></mo>
<mo fence="false" stretchy="false">{</mo>
<mn>0</mn>
<mo>,</mo>
<mo>…<!-- … --></mo>
<mo>,</mo>
<mi>k</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo fence="false" stretchy="false">}</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a_{i}\in \{0,\dots ,k-1\}}</annotation>
</semantics>
</math></span><img src="./7a8c2d59c8d1d180e4463508a4f1093ebbcb795e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.75ex; height:2.843ex;" alt="{\displaystyle a_{i}\in \{0,\dots ,k-1\}}" loading="lazy"></span>. Then a two-sided infinite sequence <i>a</i>(<i>n</i>)<sub><i>n</i>&nbsp;<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \in \mathbb {Z} }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">Z</mi>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \in \mathbb {Z} }</annotation>
</semantics>
</math></span><img src="./bf4280f3eac3f807374942067347c9219670bb81.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:3.746ex; height:2.176ex;" alt="{\displaystyle \in \mathbb {Z} }" loading="lazy"></span></sub> is (−<i>k</i>)-automatic if and only if its subsequences <i>a</i>(<i>n</i>)<sub>n ≥ 0</sub> and <i>a</i>(−<i>n</i>)<sub>n ≥ 0</sub> are <i>k</i>-automatic.<sup id="cite_ref-AS162_34-0" class="reference"><a href="#cite_note-AS162-34"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup>
</p><p>The alphabet of a <i>k</i>-automatic sequence can be extended from finite size to infinite size via <a href="K-regular_sequence" title="K-regular sequence"><i>k</i>-regular sequences</a>.<sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup> The <i>k</i>-regular sequences can be characterized as those sequences whose <i>k</i>-kernel is finitely-generated. Every bounded <i>k</i>-regular sequence is automatic.<sup id="cite_ref-36" class="reference"><a href="#cite_note-36"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Logical_approach">Logical approach</h2></div>
<p>For many 2-automatic sequences <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle s=(s_{n})_{n\geq 0}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>s</mi>
<mo>=</mo>
<mo stretchy="false">(</mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>0</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle s=(s_{n})_{n\geq 0}}</annotation>
</semantics>
</math></span><img src="./ffa80fd89b077780d3150c6ae7461ebc0f42e1a2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.626ex; height:2.843ex;" alt="{\displaystyle s=(s_{n})_{n\geq 0}}" loading="lazy"></span>, the map <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n\mapsto s_{n}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo stretchy="false">↦<!-- ↦ --></mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n\mapsto s_{n}}</annotation>
</semantics>
</math></span><img src="./9f59d67c5dc4f9683b09268a2aec9f36070c2b1d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:7.318ex; height:2.176ex;" alt="{\displaystyle n\mapsto s_{n}}" loading="lazy"></span> has the property that the first-order theory <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{FO}}(\mathbb {N} ,+,0,1,n\mapsto s_{n})}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtext>FO</mtext>
</mrow>
<mo stretchy="false">(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">N</mi>
</mrow>
<mo>,</mo>
<mo>+</mo>
<mo>,</mo>
<mn>0</mn>
<mo>,</mo>
<mn>1</mn>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">↦<!-- ↦ --></mo>
<msub>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\text{FO}}(\mathbb {N} ,+,0,1,n\mapsto s_{n})}</annotation>
</semantics>
</math></span><img src="./aa71ee9572604c0c9c0a3fe05d8669d4f129bcf2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:22.4ex; height:2.843ex;" alt="{\displaystyle {\text{FO}}(\mathbb {N} ,+,0,1,n\mapsto s_{n})}" loading="lazy"></span> is <a href="Decidability_(logic)" title="Decidability (logic)">decidable</a>. Since many non-trivial properties of automatic sequences can be written in <a href="First-order_logic" title="First-order logic">first-order logic</a>, it is possible to prove these properties mechanically by executing the decision procedure.<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup>
</p><p>For example, the following properties of the Thue–Morse word can all be verified mechanically in this way:
</p>
<ul><li>The Thue–Morse word is overlap-free, i.e., it does not contain a word of the form <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle cxcxc}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>c</mi>
<mi>x</mi>
<mi>c</mi>
<mi>x</mi>
<mi>c</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle cxcxc}</annotation>
</semantics>
</math></span><img src="./8d6c72b5723447c477e40e17ec4d6bdca30f7da3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.68ex; height:1.676ex;" alt="{\displaystyle cxcxc}" loading="lazy"></span> where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle c}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>c</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle c}</annotation>
</semantics>
</math></span><img src="./86a67b81c2de995bd608d5b2df50cd8cd7d92455.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.007ex; height:1.676ex;" alt="{\displaystyle c}" loading="lazy"></span> is a single letter and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle w}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>w</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle w}</annotation>
</semantics>
</math></span><img src="./88b1e0c8e1be5ebe69d18a8010676fa42d7961e6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.664ex; height:1.676ex;" alt="{\displaystyle w}" loading="lazy"></span> is a possibly empty word.</li>
<li>A non-empty word <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x}</annotation>
</semantics>
</math></span><img src="./87f9e315fd7e2ba406057a97300593c4802b53e4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.33ex; height:1.676ex;" alt="{\displaystyle x}" loading="lazy"></span> is <i>bordered</i> if there is a non-empty word <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle w}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>w</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle w}</annotation>
</semantics>
</math></span><img src="./88b1e0c8e1be5ebe69d18a8010676fa42d7961e6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.664ex; height:1.676ex;" alt="{\displaystyle w}" loading="lazy"></span> and a possibly empty word <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle y}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>y</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle y}</annotation>
</semantics>
</math></span><img src="./b8a6208ec717213d4317e666f1ae872e00620a0d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.155ex; height:2.009ex;" alt="{\displaystyle y}" loading="lazy"></span> with <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x=wyw}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>=</mo>
<mi>w</mi>
<mi>y</mi>
<mi>w</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x=wyw}</annotation>
</semantics>
</math></span><img src="./417eb710306f23f2668ba84b64294f8d5b7833f4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:8.912ex; height:2.009ex;" alt="{\displaystyle x=wyw}" loading="lazy"></span>. The Thue–Morse word contains a bordered factor for each length greater than 1.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup></li>
<li>There is an unbordered factor of length <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n}</annotation>
</semantics>
</math></span><img src="./a601995d55609f2d9f5e233e36fbe9ea26011b3b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}" loading="lazy"></span> in the Thue–Morse word if and only if <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (n)_{2}\notin 1(01^{*}0)^{*}10^{*}1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>n</mi>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo>∉<!-- ∉ --></mo>
<mn>1</mn>
<mo stretchy="false">(</mo>
<msup>
<mn>01</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>∗<!-- ∗ --></mo>
</mrow>
</msup>
<mn>0</mn>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo>∗<!-- ∗ --></mo>
</mrow>
</msup>
<msup>
<mn>10</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>∗<!-- ∗ --></mo>
</mrow>
</msup>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (n)_{2}\notin 1(01^{*}0)^{*}10^{*}1}</annotation>
</semantics>
</math></span><img src="./90419d47e4d976e4fad5f19aa1cd7e853725c418.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:20.208ex; height:2.843ex;" alt="{\displaystyle (n)_{2}\notin 1(01^{*}0)^{*}10^{*}1}" loading="lazy"></span> where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (n)_{2}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>n</mi>
<msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (n)_{2}}</annotation>
</semantics>
</math></span><img src="./15db530ffca3137218b9c61ec39659adfde41411.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.258ex; height:2.843ex;" alt="{\displaystyle (n)_{2}}" loading="lazy"></span> denotes the binary representation of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n}</annotation>
</semantics>
</math></span><img src="./a601995d55609f2d9f5e233e36fbe9ea26011b3b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}" loading="lazy"></span>.<sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup></li></ul>
<p>The software Walnut,<sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> developed by Hamoon Mousavi, implements a decision procedure for deciding many properties of certain automatic words, such as the Thue–Morse word. This implementation is a consequence of the above work on the logical approach to automatic sequences.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="B%C3%BCchi_arithmetic" title="Büchi arithmetic">Büchi arithmetic</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-as1-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-as1_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-as1_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-as1_1-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;152</span>
</li>
<li id="cite_note-BLRS78-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-BLRS78_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-BLRS78_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Berstel et al (2009) p.&nbsp;78</span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;168</span>
</li>
<li id="cite_note-PF13-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-PF13_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-PF13_4-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-PF13_4-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text">Pytheas Fogg (2002) p.&nbsp;13</span>
</li>
<li id="cite_note-PF15-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-PF15_5-0">^</a></b></span> <span class="reference-text">Pytheas Fogg (2002) p.&nbsp;15</span>
</li>
<li id="cite_note-AS175-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS175_6-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;175</span>
</li>
<li id="cite_note-C72-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-C72_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-C72_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Cobham (1972)</span>
</li>
<li id="cite_note-AS185-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS185_8-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;185</span>
</li>
<li id="cite_note-ApCOw527-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-ApCOw527_9-0">^</a></b></span> <span class="reference-text">Lothaire (2005) p.&nbsp;527</span>
</li>
<li id="cite_note-BR91-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-BR91_10-0">^</a></b></span> <span class="reference-text">Berstel &amp; Reutenauer (2011) p.&nbsp;91</span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFChristol1979" class="citation journal cs1">Christol, G. (1979). <a rel="nofollow" class="external text" href="https://doi.org/10.1016%2F0304-3975%2879%2990011-2">"Ensembles presque périodiques <i>k</i>-reconnaissables"</a>. <i>Theoret. Comput. Sci</i>. <b>9</b>: <span class="nowrap">141–</span>145. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1016%2F0304-3975%2879%2990011-2">10.1016/0304-3975(79)90011-2</a></span>.</cite></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite id="CITEREFBüchi1990" class="citation book cs1">Büchi, J. R. (1990). "Weak Second-Order Arithmetic and Finite Automata". <i>The Collected Works of J. Richard Büchi</i>. Z. Math. Logik Grundlagen Math. Vol.&nbsp;6. pp.&nbsp;<span class="nowrap">66–</span>92. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2F978-1-4613-8928-6_22">10.1007/978-1-4613-8928-6_22</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-4613-8930-9</bdi>.</cite></span>
</li>
<li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><cite id="CITEREFDeshouillers1979–1980" class="citation journal cs1">Deshouillers, J.-M. (1979–1980). "La répartition modulo 1 des puissances de rationnels dans l'anneau des séries formelles sur un corps fini". <i>Séminaire de Théorie des Nombres de Bordeaux</i>: <span class="nowrap">5.01 –</span> <span class="nowrap">5.22</span>.</cite></span>
</li>
<li id="cite_note-AS176-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS176_14-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;176</span>
</li>
<li id="cite_note-AS154-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS154_15-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;186</span>
</li>
<li id="cite_note-AS156-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS156_16-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;156</span>
</li>
<li id="cite_note-BR92-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-BR92_17-0">^</a></b></span> <span class="reference-text">Berstel &amp; Reutenauer (2011) p.&nbsp;92</span>
</li>
<li id="cite_note-AS155-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS155_18-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;155</span>
</li>
<li id="cite_note-LotIII526-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-LotIII526_19-0">^</a></b></span> <span class="reference-text">Lothaire (2005) p.&nbsp;526</span>
</li>
<li id="cite_note-AS183-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS183_20-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;183</span>
</li>
<li id="cite_note-LotIII524-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-LotIII524_21-0">^</a></b></span> <span class="reference-text">Lothaire (2005) p.&nbsp;524</span>
</li>
<li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><cite id="CITEREFEilenberg1974" class="citation book cs1">Eilenberg, Samuel (1974). <i>Automata, languages, and machines</i>. Vol.&nbsp;A. Orlando: <a href="Academic_Press" title="Academic Press">Academic Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-122-34001-7</bdi>.</cite></span>
</li>
<li id="cite_note-as345-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-as345_23-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) pp.&nbsp;345–350</span>
</li>
<li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><cite id="CITEREFCobham1969" class="citation journal cs1">Cobham, A. (1969). "On the base-dependence of sets of numbers recognizable by finite automata". <i>Math. Systems Theory</i>. <b>3</b> (2): <span class="nowrap">186–</span>192. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF01746527">10.1007/BF01746527</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:19792434">19792434</a>.</cite></span>
</li>
<li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><cite id="CITEREFSemenov1977" class="citation journal cs1 cs1-prop-foreign-lang-source">Semenov, A. L. (1977). "Presburgerness of predicates regular in two number systems". <i>Sibirsk. Mat. Zh.</i> (in Russian). <b>18</b> (2): <span class="nowrap">403–</span>418. <a href="Bibcode_(identifier)" class="mw-redirect" title="Bibcode (identifier)">Bibcode</a>:<a rel="nofollow" class="external text" href="https://ui.adsabs.harvard.edu/abs/1977SibMJ..18..289S">1977SibMJ..18..289S</a>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF00967164">10.1007/BF00967164</a>.</cite></span>
</li>
<li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><cite id="CITEREFPointBruyère1997" class="citation journal cs1">Point, F.; <a href="V%C3%A9ronique_Bruy%C3%A8re" title="Véronique Bruyère">Bruyère, V.</a> (1997). "On the Cobham-Semenov theorem". <i>Theory of Computing Systems</i>. <b>30</b> (2): <span class="nowrap">197–</span>220. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF02679449">10.1007/BF02679449</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:31270341">31270341</a>.</cite></span>
</li>
<li id="cite_note-ApCoW532-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-ApCoW532_27-0">^</a></b></span> <span class="reference-text">Lothaire (2005) p.&nbsp;532</span>
</li>
<li id="cite_note-ApCoW529-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-ApCoW529_28-0">^</a></b></span> <span class="reference-text">Lothaire (2005) p.&nbsp;529</span>
</li>
<li id="cite_note-BR103-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-BR103_29-0">^</a></b></span> <span class="reference-text">Berstel &amp; Reutenauer (2011) p.&nbsp;103</span>
</li>
<li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><cite id="CITEREFAlloucheAlloucheShallit2006" class="citation journal cs1">Allouche, G.; Allouche, J.-P.; Shallit, J. (2006). <a rel="nofollow" class="external text" href="http://www.numdam.org/item/AIF_2006__56_7_2115_0/">"Kolam indiens, dessins sur le sable aux îles Vanuatu, courbe de Sierpinski et morphismes de monoïde"</a>. <i>Annales de l'Institut Fourier</i>. <b>56</b> (7): 2126. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.5802%2Faif.2235">10.5802/aif.2235</a>.</cite></span>
</li>
<li id="cite_note-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-31">^</a></b></span> <span class="reference-text">Allouche and Shallit (2003) p. 160</span>
</li>
<li id="cite_note-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-32">^</a></b></span> <span class="reference-text">Allouche and Shallit (2003) p. 197</span>
</li>
<li id="cite_note-AS157-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS157_33-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;157</span>
</li>
<li id="cite_note-AS162-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-AS162_34-0">^</a></b></span> <span class="reference-text">Allouche &amp; Shallit (2003) p.&nbsp;162</span>
</li>
<li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text"><cite id="CITEREFAlloucheShallit1992" class="citation journal cs1">Allouche, J.-P.; Shallit, J. (1992). <a rel="nofollow" class="external text" href="https://doi.org/10.1016%2F0304-3975%2892%2990001-v">"The ring of <i>k</i>-regular sequences"</a>. <i>Theoret. Comput. Sci</i>. <b>98</b> (2): <span class="nowrap">163–</span>197. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1016%2F0304-3975%2892%2990001-v">10.1016/0304-3975(92)90001-v</a></span>.</cite></span>
</li>
<li id="cite_note-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-36">^</a></b></span> <span class="reference-text"><cite id="CITEREFShallit" class="citation web cs1">Shallit, Jeffrey. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/~shallit/Talks/linz1a.pdf">"The Logical Approach to Automatic Sequences, Part 1: Automatic Sequences and <i>k</i>-Regular Sequences"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><cite id="CITEREFShallit" class="citation web cs1">Shallit, J. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/~shallit/Talks/linz1a.pdf">"The Logical Approach to Automatic Sequences: Part 1"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text"><cite id="CITEREFShallit" class="citation web cs1">Shallit, J. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/~shallit/Talks/linz3b.pdf">"The Logical Approach to Automatic Sequences: Part 3"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text"><cite id="CITEREFShallit" class="citation web cs1">Shallit, J. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/~shallit/Talks/linz3b.pdf">"The Logical Approach to Automatic Sequences: Part 3"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text"><cite id="CITEREFShallit" class="citation web cs1">Shallit, J. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/~shallit/walnut.html">"Walnut Software"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text"><cite id="CITEREFMousavi2016" class="citation arxiv cs1">Mousavi, H. (2016). "Automatic Theorem Proving in Walnut". <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1603.06017">1603.06017</a></span> [<a rel="nofollow" class="external text" href="https://arxiv.org/archive/cs.FL">cs.FL</a>].</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<ul><li><cite id="CITEREFAlloucheShallit2003" class="citation book cs1">Allouche, Jean-Paul; <a href="Jeffrey_Shallit" title="Jeffrey Shallit">Shallit, Jeffrey</a> (2003). <i>Automatic Sequences: Theory, Applications, Generalizations</i>. <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-82332-6</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1086.11015">1086.11015</a>.</cite></li>
<li><cite id="CITEREFBerstelLauveReutenauerSaliola2009" class="citation book cs1">Berstel, Jean; Lauve, Aaron; Reutenauer, Christophe; Saliola, Franco V. (2009). <a rel="nofollow" class="external text" href="https://www.ams.org/bookpages/crmm-27"><i>Combinatorics on words. Christoffel words and repetitions in words</i></a>. CRM Monograph Series. Vol.&nbsp;27. Providence, RI: <a href="American_Mathematical_Society" title="American Mathematical Society">American Mathematical Society</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8218-4480-9</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1161.68043">1161.68043</a>.</cite></li>
<li><cite id="CITEREFBerstelReutenauer2011" class="citation book cs1">Berstel, Jean; Reutenauer, Christophe (2011). <i>Noncommutative rational series with applications</i>. Encyclopedia of Mathematics and Its Applications. Vol.&nbsp;137. Cambridge: <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-19022-0</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1250.68007">1250.68007</a>.</cite></li>
<li><cite id="CITEREFCobham1972" class="citation journal cs1"><a href="Alan_Cobham_(mathematician)" title="Alan Cobham (mathematician)">Cobham, Alan</a> (1972). "Uniform tag sequences". <i><a href="Mathematical_Systems_Theory" class="mw-redirect" title="Mathematical Systems Theory">Mathematical Systems Theory</a></i>. <b>6</b> (<span class="nowrap">1–</span>2): <span class="nowrap">164–</span>192. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF01706087">10.1007/BF01706087</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:28356747">28356747</a>.</cite></li>
<li><cite id="CITEREFLothaire2005" class="citation book cs1"><a href="M._Lothaire" title="M. Lothaire">Lothaire, M.</a> (2005). <span class="id-lock-registration" title="Free registration required"><a rel="nofollow" class="external text" href="https://archive.org/details/appliedcombinato0000loth"><i>Applied combinatorics on words</i></a></span>. Encyclopedia of Mathematics and Its Applications. Vol.&nbsp;105. A collective work by Jean Berstel, Dominique Perrin, Maxime Crochemore, Eric Laporte, Mehryar Mohri, Nadia Pisanti, Marie-France Sagot, <a href="Gesine_Reinert" title="Gesine Reinert">Gesine Reinert</a>, <a href="Sophie_Schbath" title="Sophie Schbath">Sophie Schbath</a>, Michael Waterman, Philippe Jacquet, <a href="Wojciech_Szpankowski" title="Wojciech Szpankowski">Wojciech Szpankowski</a>, Dominique Poulalhon, Gilles Schaeffer, Roman Kolpakov, Gregory Koucherov, Jean-Paul Allouche and <a href="Val%C3%A9rie_Berth%C3%A9" title="Valérie Berthé">Valérie Berthé</a>. Cambridge: <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-84802-2</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1133.68067">1133.68067</a>.</cite></li>
<li><cite id="CITEREFPytheas_Fogg2002" class="citation book cs1">Pytheas Fogg, N. (2002). <i>Substitutions in dynamics, arithmetics and combinatorics</i>. Lecture Notes in Mathematics. Vol.&nbsp;1794. Editors <a href="Val%C3%A9rie_Berth%C3%A9" title="Valérie Berthé">Berthé, Valérie</a>; Ferenczi, Sébastien; Mauduit, Christian; Siegel, A. Berlin: <a href="Springer-Verlag" class="mw-redirect" title="Springer-Verlag">Springer-Verlag</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-3-540-44141-0</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1014.11015">1014.11015</a>.</cite></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2></div>
<ul><li><cite id="CITEREFBerthéRigo2010" class="citation book cs1">Berthé, Valérie; Rigo, Michel, eds. (2010). <i>Combinatorics, automata, and number theory</i>. Encyclopedia of Mathematics and its Applications. Vol.&nbsp;135. Cambridge: <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-51597-9</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1197.68006">1197.68006</a>.</cite></li>
<li><cite id="CITEREFLoxton1988" class="citation book cs1">Loxton, J. H. (1988). "13. Automata and transcendence". In <a href="Alan_Baker_(mathematician)" title="Alan Baker (mathematician)">Baker, A.</a> (ed.). <span class="id-lock-limited" title="Free access subject to limited trial, subscription normally required"><a rel="nofollow" class="external text" href="https://archive.org/details/newadvancestrans1986bake"><i>New Advances in Transcendence Theory</i></a></span>. <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. pp.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/newadvancestrans1986bake/page/n113">215</a>–228. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-33545-4</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:0656.10032">0656.10032</a>.</cite></li>
<li><cite id="CITEREFRowland2015" class="citation journal cs1">Rowland, Eric (2015). <a rel="nofollow" class="external text" href="https://doi.org/10.1090%2Fnoti1218">"What is ... an automatic sequence?"</a>. <i>Notices of the American Mathematical Society</i>. <b>62</b> (3): <span class="nowrap">274–</span>276. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2Fnoti1218">10.1090/noti1218</a></span>.</cite></li>
<li><cite id="CITEREFShallit1999" class="citation book cs1"><a href="Jeffrey_Shallit" title="Jeffrey Shallit">Shallit, Jeffrey</a> (1999). "Number theory and formal languages". In <a href="Dennis_Hejhal" title="Dennis Hejhal">Hejhal, Dennis A.</a>; Friedman, Joel; <a href="Martin_Gutzwiller" title="Martin Gutzwiller">Gutzwiller, Martin C.</a>; <a href="Andrew_Odlyzko" title="Andrew Odlyzko">Odlyzko, Andrew M.</a> (eds.). <i>Emerging applications of number theory. Based on the proceedings of the IMA summer program, Minneapolis, MN, USA, July 15–26, 1996</i>. The IMA volumes in mathematics and its applications. Vol.&nbsp;109. <a href="Springer-Verlag" class="mw-redirect" title="Springer-Verlag">Springer-Verlag</a>. pp.&nbsp;<span class="nowrap">547–</span>570. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-387-98824-5</bdi>.</cite></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-03" href="https://en.wikipedia.org/wiki/?title=Automatic_sequence&amp;oldid=1298552767">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>